//
//  NetworkRequest.h
//  封装网络请求
//
//  Created by dllo on 15/10/1.
//  Copyright © 2015年 LuckyHan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface NetworkRequest : NSObject

//网络请求
+ (void)getDataWithURLString:(NSString *)urlString
                  BodyString:(NSString *)bodyString
                   DataBlock:(void (^)(id data))dataBlock;

//下载文件
+ (void)downloadFileWithURLString:(NSString *)urlString
                     WithFileName:(NSString *)fileName
                         Progress:(void (^)(float progress))progress
                          Success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                          Failure:(void (^)(AFHTTPRequestOperation *operation, NSError *erro))failure;

@end
